<?php  
$cachefile = '/var/www/garryconn.com/public_html/cache/~'.$url.'.php';
$cachetime = 18000;    
if (file_exists($cachefile) && time() - $cachetime < filemtime($cachefile)) {    
include($cachefile);        
exit;    
}   
ob_start();
include('connpress/templates/head.php'); ?>
<title><?php echo $title;?></title>
<meta name="description" content="<?php echo $metadescription;?>" />
<?php include('connpress/templates/meta.php'); ?>
<div id="content">
<h2><a href="<?php echo $url;?>.php" title="<?php echo $title; ?>"><?php echo $title; ?></a></h2>
<div style="border-bottom:1px dashed #ccc;">
<p style="text-transform:uppercase;font-size:12px;color:#5f6975;"><?php echo $metadescription; ?></p>
<p style="text-transform:uppercase;font-size:11px;color:#252525;">By <a href="<?php echo $authorurl; ?>" title="<?php echo $authorname; ?>"><?php echo $authorname; ?></a> - Last updated on <?php echo date('D, M d Y g:i a'); ?></p>
</div>
<?php echo html_entity_decode($content);
echo ("<hr>
<div id=\"comment-section\">
"); 
include('connpress/templates/comment-form.php');
echo ('
</div>
'); 
include('connpress/templates/footer.php');  
$fp = fopen($cachefile, 'w');    
fwrite($fp, ob_get_contents());    
fclose($fp);    
ob_end_flush();
?>
